/*
digital refocus using C++ writted by Riddick 838895480@qq.com
refence paper : Tao M W, Hadap S, Malik J, et al. Depth from combining defocus and correspondence using light-field cameras[C]//Proceedings of the IEEE International Conference on Computer Vision. 2013: 673-680.

Lytro illum Camera
*/


#include <opencv.hpp>
#include <iostream>
#include <string>
#include "refocus.h"

using namespace std;
using namespace cv;

void main(void)
{
    
    string imgPath="cudaRefocus/imageData/lorikeet.jpg";
    string camDataPath="cudaRefocus/cameraData/";
    Mat srcImg=imread(imgPath);
    int radius=7;
    int imgH=434;
    int imgW=541;
    float alphaMin=0.2;
    float alphaMax=2;
    CRefocus refocus(srcImg, camDataPath, radius, alphaMin, alphaMax , imgH, imgW);
    refocus.run();

}